home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8663 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help with sin() - big problem
  5. Date: 5 Mar 1996 12:02 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <5MAR199612023185@erich.triumf.ca>
  9. References: <4hhusi$49i@sunburst.ccs.yorku.ca>
  10. NNTP-Posting-Host: erich.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4hhusi$49i@sunburst.ccs.yorku.ca>, yu114405@yorku.ca (Naftali Sturm) writes...
  14. >I have a big problem.
  15. >I am making a math and trigonometry program which, one of its functions
  16. >is to compute the sine of a number.
  17. > The way I did it was. 
  18. >    result = sin(numb);
  19. >result and num are both float's.
  20. > The problem is that when numb is 1.0, the
  21. >program gives me .84147 , and when numb is 45.0 
  22.  
  23. The trig functions expect the angle to be speicfied in radians, not degrees.
  24.  
  25. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  26. Internet: bennett@triumf.ca         | of one another only when one can be
  27. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  28. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  29. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  30.  
  31.  
  32.  
  33.  
  34. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  35.  
  36.